#include <stdio.h>
#include "Spline.h"

int main(){
    int N;
    std::vector<double> x1,y1,x2,y2;
    
    N=101;
    for(int i=0;i<=N-1;i++){
        double s=-sqrt(3.0)+i*sqrt(3.0)/50.0;
        x1.push_back(s);x2.push_back(s);
        y1.push_back(2.0*(sqrt(fabs(s))+sqrt(3-pow(s,2.0)))/3.0);
        y2.push_back(2.0*(sqrt(fabs(s))-sqrt(3-pow(s,2.0)))/3.0);
    }
    ppform func1(x1,y1);
    ppform func2(x2,y2);
    func1.Complete_spline();
    func2.Complete_spline();
    func1.print_complete_spline();
    func2.print_complete_spline();
    for(int i=1;i<=100;i++){
        std::cout<<"x"<<i<<",fl"<<i<<",";
    }
}
